﻿package com.zouloux.physics.events 
{
	import com.zouloux.physics.PhysicsSphere;
	
	/**
	 * ...
	 * @author ZoulouX
	 */
	public class TouchSphere extends PhysicsSphere
	{
		private var _color:uint;
		
		public function TouchSphere (pColor:uint, pRadius:Number)
		{
			_color = pColor;
			
			super(pRadius);
			
			updateDraw();
		}
		
		public function updateDraw ():void
		{
			graphics.clear();
			graphics.beginFill(_color);
			graphics.drawCircle(0, 0, radius);
		}
	}
}